package com.qiaofang.v10dto;

public enum ExternalSysEnum {

    V10("1","v10系统");

    private String code;
    private String name;

    ExternalSysEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }
    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public static ExternalSysEnum getByCode(String code) {
        for (ExternalSysEnum item : ExternalSysEnum.values()) {
            if (item.getCode().equals(code)) {
                return item;
            }
        }
        return null;
    }
}
